#include "bsp_systick.h"
static __IO u32 TimingDelay;
void InitSystick(void)
{
	SysTick_Config(SystemCoreClock / 10000);//1ms,defaut frequency is 16M,sysCC equal 168 000 000
}
void Delay_ms(__IO u32 nTime)
{
	//main progran run this create a timer for 1ms
	TimingDelay = nTime;
	while(TimingDelay!=0);
}
void TimingDelay_Decrement(void)
{
	if (TimingDelay != 0x00)
	{ 
		TimingDelay--;
	}
}
